package ru.kop4en.diplom.camera;

import javax.swing.JPanel;
import javax.swing.JButton;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class BottomCameraPanel extends JPanel
{
	private static final long serialVersionUID = 1L;

	public BottomCameraPanel() {
		setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
		add(btnRec);
		
		btnRec.addActionListener(new ActionListener()
		{			
			@Override
			public void actionPerformed(ActionEvent e)
			{
				// vlc v4l2:// :v4l2-dev=/dev/video0 :v4l2-width=640 :v4l2-height=480 --sout "#transcode{vcodec=mpeg4,acodec=mpga,vb=800,ab=128}:standard{access=file,dst=capture_4.avi}
			}
		});
	}
	
	// private members
	private JButton btnRec = new JButton("Rec");

}
